load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")

package(default_visibility = ["//visibility:public"])

cc_binary(
    name = "libcamera_visualiztion_component.so",
    linkshared = True,
    linkstatic = False,
    deps = [":camera_visualiztion_component_lib"],
)

cc_library(
    name = "camera_visualiztion_component_lib",
    srcs = glob([
        "*.cc",
    ]),
    hdrs = glob([
        "*.h",
    ]),
    deps = [
        "//air_service/modules/perception-visualization/config:perception_visualization_config",
        "//air_service/modules/perception-visualization/visualization/visualizer:perception_visualization_visualizer",
        "//air_service/modules/perception-visualization/visualization/base:perception_visualization_base",
        "//air_service/modules/perception-camera/proto:perception_camera_cc_pb",
        "//base/plugin:base_plugin",
        "//base/io:base_io",
        "//base/blob:base_blob",
        "//middleware/device_service/camera:mid_camera_service",
        "@protobuf_import//:protobuf_import",
        "@com_github_google_glog//:glog",
        "@com_github_gflags_gflags//:gflags",
        "@airosrt//:airosrt",
        "@yaml_cpp//:yaml_cpp",
        "@jsoncpp//:jsoncpp",
        "@eigen//:eigen",
        "@glew//:glew",
        "@glfw//:glfw",
    ],
)

cc_library(
    name = "camera_visualiztion_message",
    hdrs = glob([
        "camera_perception_viz_message.h",
    ]),
    deps = [
        "//air_service/modules/perception-visualization/visualization/base:perception_visualization_base",
        "@eigen//:eigen",
        "//base/blob:base_blob",
    ],
)